package com.taotao.springboot2.common.enums;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import static org.springframework.web.bind.annotation.RequestMethod.GET;

/**
 * <p>
 * 枚举列表
 * </p>
 *
 * @author fanbeibei
 * @version 1.0.0
 * @date 2022/4/2 14:34
 */
@RestController
@RequestMapping("/enum")
public class EnumController {

    @RequestMapping(value = "/emumList", method = GET)
    public List<CodeTextEnumView> versionInformation(@RequestParam("enumId") String enumId) {

        return EnumHub.getCodeTextEnumViewList(enumId);


    }

}
